export default [
  {
    path: "dashboard",
    name: "dashboard",
    component: () => import("@/views/admin/dashboard.vue"),
    meta: {
      icon: "",
      title: "数据管理",
    },
  },
  {
    path: "nurse",
    name: "nurse",
    component: () => import("@/views/nurse/nurse-view.vue"),
    redirect: "/nurse/list",
    children: [
      {
        path: "list",
        name: "nurse-list",
        component: () => import("@/views/nurse/nurse-list.vue"),
      },
      {
        path: "edit/:id?",
        name: "nurse-edit",
        component: () => import("@/views/nurse/nurse-edit.vue"),
        meta: {
          isBack: true,
        },
      },
    ],
    meta: {
      icon: "",
      title: "护工管理",
    },
  },

  {
    path: "allocation",
    name: "allocation",
    component: () => import("@/views/allocation/allocation-view.vue"),
    redirect: "/allocation/list",
    children: [
      {
        path: "list",
        name: "allocation-list",
        component: () => import("@/views/allocation/allocation-list.vue"),
      },
      {
        path: "edit/:id?",
        name: "allocation-edit",
        component: () => import("@/views/allocation/allocation-edit.vue"),
      },
    ],
    meta: {
      icon: "",
      title: "任务分配",
    },
  },
];
